import axios from 'axios'
// 获取建筑数据
const getBudingData = async () => {
  return await axios.get('http://localhost:8081/Wuhan_buildings')
}

// 获取道路数据
const getRoadData = async () => {
  return await axios.get('http://localhost:8081/Wuhan_roads')
}
//获取交通事故的数据
const getEventData = async () => {
  return await axios.get('http://localhost:8081/Wuhan_events')
}
//获取桥梁数据
const getBridgeData = async () => {
  return await axios.get('http://localhost:8081/Wuhan_bridges')
}
export { getBudingData, getRoadData, getEventData, getBridgeData}
